package com.lg.online_shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lg.online_shop.entity.Size;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SizeMapper extends BaseMapper<Size> {

    @Select("SELECT * FROM size WHERE good_id = #{goodId}")
    List<Size> selectSizeByGoodId(Long goodId);

    @Select("SELECT * FROM size WHERE id = #{sizeId}")
    List<Size> selectSizeBySizeId(Long sizeId);
}
